package cn.starrys.tool.mail

import jakarta.mail.Authenticator
import jakarta.mail.PasswordAuthentication

class LoginAuthenticator(
    private var username: String,
    private var password: String
) : Authenticator() {
    override fun getPasswordAuthentication(): PasswordAuthentication {
        return PasswordAuthentication(username, password)
    }
}
